#include "board.h"
#include "rtthread.h"

static rt_uint8_t rt_led1_thread_stack[1024];


static void led1_thread_entry(void* parameter);
//线程控制块
//static struct rt_thread led1_thread;
//线程控制块指针
static rt_thread_t led1_thread = RT_NULL;

int main(void)
{	
    led1_thread = 
			rt_thread_create("led1",led1_thread_entry,RT_NULL,512,3,20);
	  rt_thread_startup(led1_thread);
}

static void led1_thread_entry(void* parameter)
{
	int color = 0;
	while(1)
	{
		LED_Color(color%8);
		color++;
		rt_thread_delay(1000);
	}
}

